package com.cskaoyan.bean;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * @author stone
 * @date 2022/07/12 11:41
 */
@Data
public class User {
    String username;
	String password;
	Integer age;
    String[] hobbies;
    Integer[] ids;
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy/MM/dd HH:mm:ss",timezone = "GMT+8") // 指定Json转换过程中的日期格式
    Date birthday;
	
}
